package com.wmlt.dao;

import com.wmlt.entity.LiveBroadcast;

import java.util.List;

public interface LiveBroadcastDao {
    //从数据中查询用户的key是否存在
    public LiveBroadcast getLiveBroadcastByKey(String key);
    //根据key删除数据中的数据
//    public int deleteLiveBroadcastByKey(String key);
    //更新直播状态
    public int updateLiveState(String key,int status);

    //获取直播列表
    public List<LiveBroadcast> getLiveBroadcastList();

    //审核直播
    public int auditLiveBroadcast(int[] liveNo);


    //根据key拿到直播信息
    public List<LiveBroadcast> getUserInfoByLiveKey(String liveKey);

    public int handlingLivestreamingRequests(String userid);

    public int getuUserLiveBroadcastStautsByid(String userId);


    //根据用户id获取直播信息
    public LiveBroadcast getLiveBroadcastInfoByUserId(String userId);

    //发起直播，修改数据库直播表的信息
    public int launchLiveBroadcast(LiveBroadcast liveBroadcast);

    //申请直播
    public int applyforLive(LiveBroadcast liveBroadcast);
}
